package td.domain;

import java.util.HashSet;

import com.googlecode.objectify.annotation.Entity;

@Entity
public class TagThinker extends DatastoreObject {

	private static final long serialVersionUID = 7621470284532837658L;

	private Thinker thinker;

	private TagDef tag;
	private HashSet<Long> thoughtIds = new HashSet<Long>();

	public TagThinker(Thinker thinker, TagDef tag, Thought thought) {
		super();
		this.thinker = thinker;
		this.tag = tag;
		this.thoughtIds.add(thought.getId());
	}

	public void addThought(Thought thought) {
		this.thoughtIds.add(thought.getId());
	}

	public Thinker getThinker() {
		return thinker;
	}

	public void setThinker(Thinker thinker) {
		this.thinker = thinker;
	}

	public TagDef getTag() {
		return tag;
	}

	public void setTag(TagDef tag) {
		this.tag = tag;
	}

	public HashSet<Long> getThoughtIds() {
		return thoughtIds;
	}

	public void setThoughtIds(HashSet<Long> thoughtIds) {
		this.thoughtIds = thoughtIds;
	}

}
